Fundamentals of XAFS -- an introduction to X-ray Absorption Fine-Structure Spectroscopy