Deformation-induced reactions of ZnO and TiO2