Cause into function: Ernst Mach and the reconstruction of explanation in psychology.