Q-switching of an erbium-doped fibre laser modulated by a Bragg grating fixed to a piezoelectric