STANDING AND MOVING GAP SOLITONS IN RESONANTLY ABSORBING GRATINGS