Three-dimensional numerical analysis of deformation and failure during top coal caving