Understanding metal oxide/water interaction from first principles calculations