A robust and consistent first-order zigzag theory for multilayered beams