The online measuring of the average electron beam energy using CO2, He-Ne lasers and optical laminas