An investigation of metal contacts to II–VI compounds: CdTe and CdS