Dielectric relaxation spectroscopy and molecular dynamics of a liquid-crystalline polyacrylate containing spiropyran groups