Text this: Polar sampler: A novel Bernoulli sampler using polar codes with application to integer Gaussian sampling