Nanoscale determination of surface orientation and electrostatic properties of ZnO thin films