Metal-insulator transition in epitaxial thin films of BaRuO3