Ultralow frequency waves in the magnetotails of the earth and the outer planets