Switching device based on first-order metal- insulator transition induced by external electric field