First principles study of the graphene/Ru(0001) interface.