Generalized de-homogenization via sawtooth-function-based mapping and its demonstration on data-driven frequency response optimization