A three-dimensional numerical model of tectonic plates that develop due to a stress-history dependent rheology