Effects of the superposition of compaction and tectonic strain during folding of a multilayer sequence—model and observations