Defect studies on silicon and silicon–germanium for PV and optoelectronic applications