Surface-barrier Si-based photodetectors fabricated by the spray pyrolysis technique