Er-doped ZnO thin films grown by pulsed-laser deposition