Self-knowledge and Moore's paradox