A switched-capacitor compatible membership function block