Optical switching dynamics of the nonlinear Bragg reflector: Comparison of theory and experiment