Crystal structures and phase transitions of the van der Waals ferromagnet VI3