The energy-momentum tensor of spin-1 hadrons: formalism