How the laboratory determines the diamond grade