A Green Approach to Reversibly Tuning the Optical Properties of Metal Oxides