Uniform parameterization of subanalytic sets and diophantine applications