Theorems of Ingham and Chernoff on Riemannian symmetric spaces of noncompact type