What were later deposited in foreland areas as molasse?