Optoelectronic device engineering for energy applications