Sol-gel synthesis of Ba(MgTaO3: Phase pure powder and thin films