Intersection cohomology of rank two character varieties of surface groups