Homological invariants of modules over commutative rings