If the value of \( \displaystyle\lim_{x \to 0}\left(2-\cos x \sqrt{\cos 2x}\right)^\left({\dfrac{x+2}{x^{2}}}\right) \) is equal to \( e^{a} \), then \( a \) is equal to _______.