Theoretical studies of epitaxial graphene formation on metal surfaces