Etting attitude of aircraft using magnetic field

Term paper explaining how to find an aircraft altitude using the information gathered on the magnetic field of the aircraft and how to translate the magnetic field of the aircraft from the aircraft coordinate system to the earths and from that find the attitude.
I included two helpful articles to write this paper. It gives all the information you need!
If possible find another source but if not, those two would be fine.
2 pages of writing and please include some graph to illustrate the concept and all formulas (you can also find that in the articles I will attach).