N = 2 supersymmetric S-folds