Photoemission and photofragmentation of butanoic, hexanoic and octanoic acids in the gas phase