Optical spectroscopy of the low‐mass X‐ray binary GX 9+9