Growth and erosion of hydrocarbon films investigated by in situ ellipsometry