Active sensing methods of ionic polymer metal composite (IPMC)