Characteristics of all-optical gate switches using cascaded second-order nonlinear effect in periodically-poled lithium niobate devices: Effect of fabrication errors