Self-consistent modeling of ice-sheet evolution and paleoclimate