Reverse-engineering of graphene on metal surfaces: a case study of embedded ruthenium