Density functional energy decomposition into one- and two-atom contributions