Perturbative expansion of the energy of static sources at large orders in four-dimensional SU(3) gauge theory