Magnetic Resonance: Introduction, Advanced Topics and Applications to Fossil Energy