Structural, thermal and quantum chemical studies of p-coumaric and caffeic acids