Short- and long-distance contributions to the rare decay KL → μ+μ−