Stress field interference of hydraulic fractures in layered formation