Spherical periodicity as structural homology of crystalline and amorphous states