Detecting recent selective sweeps while controlling for mutation rate and background selection