Gravar-mail: Quantum controlled-phase-flip gate between a flying optical photon and a Rydberg atomic ensemble