Network centrality drives optimal protection investment against systemic risk propagation in complex systems