Explicit and semi-implicit runge-kutta formulas for the integration of stiff equations