Discretization of continuous time state space equations