The Measurement Process in the Generalized Contexts Formalism for Quantum Histories