Photoresponsive liquid crystalline and amorphous polymers