Optical measurement of Ga beam flux for MBE