An analytical study of cone penetration tests in granular material