Measurement and collapse within the two-state vector formalism