The effect of finite deformations in the elastic stability of plane frames