Structures of late transition metal monoxides from Jahn-Teller instabilities in the rock salt lattice.