Effects of Anions and pH on the Stability of ZnO Nanorods for Photoelectrochemical Water Splitting