First‐principles calculations of atomic and electronic properties of ZnO nanostructures