Core excitons in amorphous semiconductors