Oxygen vacancies assisted photocatalytic dye degradation and photoelectrochemical water splitting performance in Ag and Mg-modified NaNbO3 | Synapse