Microscopic Study of Wobbling Motions in Hf and Lu Nuclei