Compatibility constraints on folded and faulted strata and calculation of total displacement using computational restoration (UNFOLD program)