Structural engineering of ancient and modern buildings