Self-heating of phase-slip centers