A semiparametric approach to the stress-strength problem