Software for online bubble detection, determining bubble statistics, control of input parameters, and control of fluidized beds