Formation of gas bubbles at submerged orifices