Effects of oxygen and nitrogen addition on the optical properties of diamond-like carbon films