Flux stabilization of D-branes