p−InP/n−CdS solar cells and photovoltaic detectors