A systematic study of source time functions and moment tensors of intermediate and deep earthquakes