Normalizing flows for Bayesian analysis