Silicon/Germanium and Perovskite Optoelectronic Devices for Photodetection and Photovoltaics