Excess sludge discharge frequency for UASB reactors