When did the layer of marine flysch sediments get deposited in the foreland basin?