Universal extra dimensions and the muon magnetic moment