Computational models of attachment and self-attachment