The pion-nucleon scattering lengths from pionic deuterium