A Monolithic Visible, Infrared and Terahertz 2D Detector