A dispersion theoretical approach to the threshold amplitudes of pion photoproduction