Text this: A message-passing approach to obtain the trace of matrix functions with applications to network analysis.