Energy spectrum of the trigonometric Rosen–Morse potential using an improved quantization rule