All-optical bistable switching in nonlinear directional coupler loaded with Bragg reflector