Communication: Structure characterization of hard sphere packings in amorphous and crystalline states.