Nitrification–denitrification via nitrite accumulation for nitrogen removal from wastewaters