Sandwich cylinder instability under nonuniform axial stress