An electronically switchable wideband pattern diversity antenna