The ionic liquid effect on the Boulton-Katritzky reaction: a comparison between substrates of different structure