Growth and coverage dependent electronic structure of MgO on Ag(001)