The abundances of ethane and acetylene in the atmospheres of Jupiter and Saturn