Unify lambd optimization
Previously, there was significant amount of copy-paste among the find_fm_goldstone_scaling()
and find_afm_goldstone_scaling()
functions. In this MR, we introduce a generalized minimize_function_of_lambd()
function, which both of them can call.