Flexural Modeling of Foreland Basins