Generation of coherence via Gaussian measurements