Quantum noise reduction using a cavity with a Bose–Einstein condensate