Magnetism of epitaxial Ru and Rh monolayers on graphite