A novel measure of edge and vertex centrality for assessing robustness in complex networks