Design and analysis of a reconfigurable gilbert mixer for software-defined radios