Importance of the X-ray edge singularity for the detection of relic neutrinos in the PTOLEMY project