G-degree for singular manifolds