Computing optimal (s,S) policies in inventory models with continuous demands