Temporal variation of the activity of intermediate and deep focus earthquakes