Stochastic differential equations for compounded risk reserves