Extra dimensions and the muon anomalous magnetic moment