Cu/ZnO(0001) under oxidating and reducing conditions: A first-principles survey of surface structures