Economics of residential crowding in developing countries