An evolutionary view of self-awareness