Mechanism for linear and nonlinear optical effects in LiB3O5, CsB3O5, and CsLiB6O10 crystals