Polycyclic Aromatic Hydrocarbon and Emission Line Ratios in Active Galactic Nuclei and Starburst Galaxies