From drugs to deprivation: a Bayesian framework for understanding models of psychosis