Spontaneous Pattern Formation in Photoelectrodeposited Semiconductor Films