Finite Element Formulation for Shells and Thin-Walled Beams. Linear and geometric non-linear analysis