Theory of the light curves of eclipsing systems with oscillating components: I