Solid-state photochemistry of cis-cinnamic acids: a competition between [2 + 2] addition and cis–trans isomerization