Design of a nitrifying tertiary trickling filter based on theoretical concepts