Gravar-mail: Determination of flexibility factors in curved pipes with end restraints using a semi-analytic formulation