On the structure of ideals of the dual algebra of a coalgebra