Structured adaptive model inversion (SAMI): Theory and applications to trajectory tracking for non-linear dynamical systems