General properties of the Rayleigh-Taylor instability in different plasma configurations: the plasma foil model