The efficiency of resource reallocation within firms