Originally trained as a historian , Mr. Meri was for decades one of Estonia 's most prominent public intellectuals , an authority on the history , languages and cultures of the Finno-Ugric peoples of northeastern Europe and Siberia .