An EPID‐based method to determine mechanical deformations in a linear accelerator