How do observations of distant supernovae show that the expansion of the Universe is accelerating?