Photoelectrochemical water splitting and gas ionisation sensing using metal oxide nanostructures