Polycyclic aromatic hydrocarbons and the extinction curve