Non-prismatic thin-walled beams: Critical issues and effective modeling