Application of neutron scattering to the determination of the atomic and/or magnetic structure of a material