Single-photon transistor based on cavity electromagnetically induced transparency with Rydberg atomic ensemble