Error analysis of the orthogonal series solution of linear time-invariant systems