Extended charge decomposition analysis and its application for the investigation of electronic relaxation