Polar optical oscillations of layered semiconductor structures in the long-wavelength limit