Time-optimal control of linear time invariant systems between two arbitrary states