Latency and Distortion compensation in Augmented Environments using Electromagnetic trackers