Smoothie: A model for linearity optimization of FET devices in RF applications