Instability of steady states for nonlinear wave and heat equations