Localized excitons and magnetic polaron formation in (Cd, Mn)Se and (Cd, Mn)Te