Text this: Quantifying influential nodes in complex networks using optimization and particle dynamics