Vacuum cavity formation for high thermal isolation in flexible thermal sensor