Potential energy surface for graphene on graphene: Ab initio derivation, analytical description, and microscopic interpretation