Scanning tunnelling microscopy of MgO ultrathin films on Ag(001)