Nitrate reduction and denitrification in flooded soils