Enviar por SMS: A unified energy formulation for the stability analysis of open and closed thin-walled members in the framework of the generalized beam theory