Text this: Inferring the energy cost of resistance to parasitic infection and its link to a trade-off