Environmental integrated production planning for the ammonia synthesis