Photoinduced polycyclic aromatic hydrocarbon dehydrogenation. Molecular hydrogen formation in dense PDRs