Linear and nonlinear optical properties of the KBe2BO3F2 (KBBF) crystal