Photodegradation of cinnamic acid in different media