Effective baking of thick and ultra-thick photoresist layers by infrared radiation