Spatiotemporal disturbance characteristics determine functional stability and collapse risk of simulated microbial ecosystems