On the retarded potentials of inhomogeneous ellipsoids and sources of arbitrary shapes in the three-dimensional infinite space