Lattice vibrations and the crystal structure of GaS and GaSe