The relative effects of the accretionary wedge and sedimentary layer on the rupture process of subduction zone earthquakes