Strain and temperature dependence of the insulating phases of VO2 near the metal-insulator transition