Determination of the NMR monomer shift and dimerization constant in a self-associating system by direct application of the least-squares method