Stable Channels with Mobile Bed: Formulation and Numerical Solution