Automatic Rao-Blackwellization for Sequential Monte Carlo with Belief Propagation