Nanolayers of selected porphyrin and phthalocyanine dyes on solid substrates studied by electronic absorption and IR reflection–absorption spectroscopy