Chaotic ray propagation in corrugated layers