Stability of bimodal planar switched linear systems with both stable and unstable subsystems