Distributed feedback pulse generator based on nonlinear fibre grating