Simple versatile method for fabricating guided-wave gratings.