The science behind a solar eclipse