Productivity, transport costs and subsistence agriculture