Comparing Roles of Fault Friction and Upper-Plate Rigidity in Depth-Dependent Rupture Characteristics of Megathrust Earthquakes