Text this: Advances in optoelectronics for environmental and energy sustainability