Effects of wall-rock elasticity on magma flow in dykes during explosive eruptions