Extension of the non-gravitational stress–energy tensor that incorporates the energy–momentum of gravity