Piezoelectric and optical properties of ZnO films deposited by an electron–cyclotron-resonance sputtering system