An efficient general-purpose least-squares refinement program for macromolecular structures