CdTe epilayers for uses in optical waveguides