A stochastic differential equation model for assessing drought and flood risks