Higher‐order beam model with eigenstrains: theory and illustrations