Explaining atomic spectra within classical physics: 1897-1913