Heteroepitaxy of CdTe on GaAs and silicon substrates