Exact boson sampling using Gaussian continuous-variable measurements