A broad-spectral-response perovskite photodetector with a high on/off ratio and high detectivity