Structures of ordered tungsten- or molybdenum-containing quaternary perovskite oxides