How Opacity Spawns Transparency: A Theory of Self-knowledge of Beliefs