Impurity effects in the optical absorption of quantum rings