Supersymmetric branes and instantons on curved spaces