New implementation of the first-order perturbation theory for calculation of interatomic vibrational amplitudes and corrections in gas electron diffraction