Neutrinos in extra dimensions and the anomalous magnetic moments of leptons