Quantum-dynamical theory for squeezing the output of a Bose-Einstein condensate