Precision luminosity measurement in proton–proton collisions in 2015 and 2016 at CMS