Generalized shape-preserving response prediction for accurate modeling of microwave structures