Measurement of the atmospheric muon flux with the NEMO Phase-1 detector