Measurement of \(\Lambda \)(1520) production in pp collisions at \(\sqrt{s} = 7\ \hbox {TeV}\) and p–Pb collisions at \(\sqrt{s_{\mathrm{NN}}} = 5.02\ \hbox {TeV}\)