Branes in \(N=2,\, D=4\) supergravity and the conformal field theory limit. Spontaneous \(\mathcal{N} = 2 \rightarrow \mathcal{N} = 1\) supersymmetry breaking in supergravity and type II string theory 