The Versatility of Perovskite Materials for Optoelectronics