Atomic and electronic structure of simple metal/graphene and complex metal/graphene/metal interfaces