Towards the biofilm characterization and regulation in biological wastewater treatment