Logarithmic and exponential switched-capacitor convertors and some of their applications