Three-dimensional simulation of spontaneous rupture: The effect of nonuniform prestress