Structural and optoelectronic properties of Sb2S2O based photodetectors