Quaternary quartic forms and Gorenstein rings