Synthesis and structure of BaPtO3