A General Purpose Reconfigurable MEMS-Based Attenuator for Radio Frequency and Microwave Applications