The origin of magnetism in transition metal-doped ZrO2 thin films: experiment and theory