Generalized Fourier quasicrystals and almost periodic sets