Hamilton-Jacobi equation, heteroclinic chains and Arnol'd diffusion in three time scales systems