Moving fibre/phase mask-scanning beam technique for enhanced flexibility in producing fibre gratings with uniform phase mask