Dehydrogenation of polycyclic aromatic hydrocarbons in the diffuse interstellar medium