The adhesion nature of the Ag/MgO(100) interface: an ab initio study