The effect of end reflections and mirror positioning on the optical response of a nonlinear distributed feedback device