Optical and mass selective laser spectroscopy of 9-methylanthracene and 9-cyanoanthracene and their molecular microclusters