Generalized complex geometry, generalized branes and the Hitchin sigma model