Entanglement in a Jaynes-Cummings Model with Two Atoms and Two Photon Modes