A bubble detection technique based on light intensity and Mie scattering theory for spinning solution