Precise Measurement of Rotational Levels of 166Er and 178Hf