An embedded fracture modeling framework for simulation of hydraulic fracturing and shear stimulation