Stochastic comparisons of parallel and series systems with heterogeneous resilience-scaled components