Nodal vulnerability to targeted attacks in power grids