UNITCELL: a nonlinear least-squares program for cell-parameter refinement and implementing regression and deletion diagnostics