Optical absorption and refractive index changes in a semiconductor quantum ring: Electric field and donor impurity effects