Measurement of the Bc+meson lifetime using Bc+→J/ψμ+νμX decays