Calculating the abundance of isotopes using mass spectra | 1. Atomic Structure and the Periodic Table