Metainference: A Bayesian inference method for heterogeneous systems | Synapse