Two-wave mixing and energy transfer in BaTiO3 application to laser beamsteering