Energy harvesting from the tail beating of a carangiform swimmer using ionic polymer-metal composites