Modeling of layered timber beams and ribbed shell frameworks