Asymptotic derivation of a general linear model for thin-walled elastic rods