Religion and the rise of capitalism