Monte Carlo estimation of the structure factor for hard bodies in small-angle scattering