kf_pls_state_fit function

Finalize a KF-PLS state into a fitted model