Tuning procedure for traveling wave structures and its application to the C-Band cavities for SPARC photo injector energy upgrade