K-absorption spectra of atomic Ca, Cr, Mn and Cu