THE MULTI-LAYER VARIABLE ABSORBERS IN NGC 1365 REVEALED BY XMM-NEWTON AND NUSTAR