Meshless analysis of metallic and composite beam structures by advanced hierarchical models with layer-wise capabilities