Size, separation, structural order, and mass density of molecules packing in water and ice