The Centralizers of Semisimple Elements of the Chevalley Groups $E_7$ and $E_8$