Electrically programmable photonic crystal slab based on the metal-insulator transition in VO2