Spontaneous symmetry breaking in the optimization of subwavelength solar cell textures for light trapping