Towards a Theory of AI Personhood