X-ray-absorption spectroscopy of ZnTe, CdTe and HgTe: experimental and theoretical study of near-edge structures