Quality, Advertising and the Formation of Goodwill under Dynamic Conditions