Hall- and GMR-based magnetic speed sensors