A measurement of the total cross section and a study of inclusive muon production for the process e+e−→ hadrons in the energy range between 39.79 GeV and 46.78 GeV