Reducing nitrogen emissions to soil and water in crop production