Luminescence and mass-spectrometric investigation of indolylquinolines and indolylacridines