Optimizing nitrogen use in food and energy production & minimizing the consequent harm to humans and the environment