Intermediate angle scattering functions and local chain configurations of semicrystalline and amorphous polymers