Asteroid rotation and shapes from numerical simulations of gravitational re-accumulation