Mathematical study of the small oscillations of a pendulum filled by an inviscid, incompressible, almost homogeneous liquid