Theory of finite size effects for electronic quantum Monte Carlo calculations of liquids and solids | Synapse