Light-induced mechanical response in crosslinked liquid-crystalline polymers with photoswitchable glass transition temperatures