Implementing the Deutsch–Jozsa algorithm by using Schrödinger cat states in cavity QED