Wavelengths and hyperfine constants in Ga I and Ga II derived by Fourier transform spectroscopy