Dependence of pH on phase stability, optical and photoelectrical properties of SnS thin films