Bubble size distribution in agitated vessels and bubble columns