Pirk: A computer program to calculate the elastic scattering of pions from nuclei