The determination of crystal structures