Adaptive Input Reconstruction With Application To Model Refinement, State Estimation, And Adaptive Control.