Tuning Superconductivity in FeSe Thin Films via Magnesium Doping.