Consistent state-discretization of linear systems