Broadband Bi2O2Se Photodetectors from Infrared to Terahertz