Entropy and entanglement in the Jaynes–Cummings model with effects of cavity damping