An intelligent control of NH3 injection for optimizing the NOx/NH3 ratio in SCR system