Hausdorff measures and the Morse-Sard theorem