An analog trimming circuit based on a floating-gate device