A well test model for stress-sensitive and heterogeneous reservoirs with non-uniform thicknesses