On the nature of ULF waves upstream of planetary bow shocks