The development of sentience in juvenile animals