Equilibrium of a second-gradient fluid and an elastic solid with surface stresses