Unified theory of ghost imaging with Gaussian-state light | Synapse