Agricultural productivity and surplus production in Tanzania