State-space based discretize-then-differentiate adjoint sensitivity method for transient responses of non-viscously damped systems. (1st July 2021)