Ellipsometric methods for absorbing layers: a modified downhill simplex algorithm