Fourier analysis of the light curves of eclipsing binaries in the case of transit eclipses, with application to the eclipsing system YZ Cassiopeiae