Dispersive and covalent interactions between graphene and metal surfaces from the random phase approximation.