Manipulation of planar oxygen defect arrangements in multifunctional magnèli titanium oxide hybrid systems: from energy conversion to water treatment