Comprehensive Study Notes: The d- and f-Block Elements