Good ideals in Gorenstein local rings