Modeling nitrate removal in a denitrification bed.