Recent Advances in Broadband Photodetectors from Infrared to Terahertz