The principles of neutron spin echo