An evaluation of least-squares fits to COSY spectra as a means of estimating proton—proton coupling constants. I. Simulated test problems