Singular traces, dimensions, and Novikov-Shubin invariants