Epoxypolyesters as film-forming materials