High-performance rigid and flexible ultraviolet photodetectors with single-crystalline ZnGa2O4 nanowires