Text this: Strain perturbation method for atomic stress calculation with machine-learning potentials