Feasibility study of the magnetic beam self-focusing phenomenon in a stack of conducting foils: application to TNSA proton beams