The geometry of branes and extended superspaces