Text this: Determination of the airy stress function from whole-field simulated stress data