Study of an ionic polymer-metal composite based flowmeter