3-D electromagnetic-model-based absolute attitude estimation using a deep neural network