Optimized design of high fan-in multiplexers using tri-state buffers