Fraction of protons in primary cosmic rays according to data from the PAMIR experiment in consideration of the response of X-ray emulsion chambers