Refined beam elements with arbitrary cross-section geometries