Simulations of fluid invasion during fracturing in unconventional reservoirs