ENH: optimize: curve_fit now warns if pcov is undetermined

done