Effects of layering and anisotropy on fault geometry