Dimensional and geometrical effects on the electronic structure of polycyclic hydrocarbons