Perturbative calculation of quasinormal modes of d-dimensional black holes