Differential equations and dispersion relations for the sunrise amplitudes