Nonequilibrium semiconductor-metal phase transition due to self-heating