Monitoring the effect of chemicals on biological communities. The biofilm as an interface