A DFT study on the electronic structure, magnetic and optical properties of Er doped ZnO: Effect of Er concentration and native defects