Constraining the depth of the winds on Uranus and Neptune via Ohmic dissipation