calculate transition charges using spatial densities