Spectral geometry for certain noncompact Riemannian manifolds