Momentum transfer at the high-latitude magnetopause and boundary layers