Bandgap Engineering of Lead-Free Ternary Halide Perovskites for Photovoltaics and Beyond: Recent Progress and Future Prospects