A framework for analyzing the state in economic history