Averaging and Motion Control On Lie Groups