Dynamics of fast molecular ions in solids and plasmas: A review of recent theoretical developments