How the first exoplanets were discovered