Band gap tuning of nickelates for photovoltaic applications