Synthesis and implementation of dual-mode compact multiplexers