Formation of an inverted duplication can be an initial step in gene amplification