Upper bounds for the cohomological dimensions of finitely generated modules over a commutative Noetherian ring