Electrical and optical switching properties of ion implanted VO2 thin films