Twist-averaged boundary conditions in continuum quantum Monte Carlo algorithms.