Photomechanics of Liquid-Crystalline Elastomers and Other Polymers