High-frequency gratings with locally varying profile depth for visual security applications