Integration by parts identities in integer numbers of dimensions. A criterion for decoupling systems of differential equations