Search for Sterile Neutrinos in MINOS and MINOS+ Using a Two-Detector Fit