Molecular-beam epitaxy-grown HgCdTe infrared detector: Material physics, structure design, and device fabrication