Electromagnetic tracking in medicine--a review of technology, validation, and applications