Theoretical study of the optical absorption and refraction index change in a cylindrical quantum dot