A Scheme for Atomic Entangled States and Quantum Gate Operations in Cavity QED