A Theory of Institutional Emergence