Relativistic characterisation of the energy of soliton-like defects in continuous media