Understanding the Planck blackbody spectrum and Landau diamagnetism within classical electromagnetism