Linear and Nonlinear Stability Analyses of Density-Wave Oscillations in Heated Channels