Dynamics of planetary ions in the induced magnetospheres of Venus and Mars