Effects of the Cr doping on structure and optical properties of ZnO thin films