Crack-free GaAs epitaxy on Si by using midpatterned growth: Application to Si-based wavelength-selective photodetector