Hydraulic Fracture Propagation in Layered Formations