Power-dependent Bragg diffraction of a waveguide grating covered with polyaniline/PMMA