Characterization of the varying flux of atmospheric muons measured with the Large Volume Detector for 24 years