The condensational instability in the solar transition region and corona