Text this: Enhanced Electrochromic Properties of NiO<i><sub>x</sub></i> Films Through Magnesium Doping Strategy