The Mechanics of Laboratory Earthquakes in the Presence of Stress Heterogeneities due to Fault Geometry or Direct Fluid Injection