Higgs bundles, branes and quadratic differentials