Gorenstein homological dimension with respect to a semidualizing module and a generalization of a theorem of Bass