Calibration of the DUNE Far Detector Using Cosmic-ray Muon Events