A composite beam model for the mechanical analysis of superconducting magnet pancakes