Closed loop stabilization of planar bilinear switched systems