ENH: optimize: curve_fit now warns if pcov is undetermined

We can discuss it e.g. there