A universal equation for the electronic stopping of ions in solids