Theory of oscillations of gravitational waves