_spg_optim returns history of objective function values

This PR attaches the sequence of all objective function values visited by _spg_optim to the results that it returns.  It also adds tests for the convergence status of cor_nearest_factor.