Sequential Monte Carlo Methods in the nimble and nimbleSMC R Packages