A generative model of body ownership and minimal selfhood