Through what period did the second empire last?