CdTe/HgCdTe indium-diffused photodiodes