Two-layer photoresist system for water-sensitive substrates