Water adsorption on metal surfaces: A general picture from density functional theory studies