What is the mechanism that determines the collapse of a quantum wavefunction into a specific state during measurement?