Low-Bandgap Terpolymers for High-Gain Photodiodes with High Detectivity and Responsivity from 300 nm to 1600 nm