Preparation and characterization of BaMnO3 and SrMnO3 polytypes