Optimal Design of Pre-Denitrification Systems