The Degrees of Freedom of Wireless Networks Via Cut-Set Integrals