Core excitons in the III-VI layered semiconductors