optical vs mechanical switches