Linear dynamic polarizability and the absorption spectrum of an exciton in a quantum ring in a magnetic field