Brane realization of Nambu monopoles and electroweak strings