Hybrid Lead Perovskites as Photocatalysts and Materials for Photo- and Electrocatalytic N2 Reduction