The structure of the inverse system of Gorenstein k-algebras