Towards an algorithm for dielectric-edge diffraction coefficients