Grating solitons near the photonic bandgap of a fiber Bragg grating