structure of gem