Stability of a slender beam-column with locally varying Young's modulus