Measurement of the atmospheric muon flux at 3500 m depth with the NEMO Phase-2 detector