Photodissociation of carboxylic acids: dynamics of OH formation