Influence of oxygen partial pressure on the microstructural and magnetic properties of Er-doped ZnO thin films