A wave-based optimization framework for 1D and 2D periodic structures. (May 2020)