ISO spectroscopy of circumstellar dust in the Herbig Ae systems AB Aur and HD 163296