Modeling Electromagnetic Navigation Systems for Medical Applications using Random Forests and Artificial Neural Networks