First principles study of oxygen reduction reaction mechanisms on N-doped graphene with a transition metal support