A pseudo-3D model for hydraulic fracture growth in a layered rock