Which treaty ended World War I and imposed harsh penalties on Germany, contributing to conditions that led to World War II?