A Methodology to Quantify Resilience in Growing Pigs