cleaned up kappa routine, with definition of leaky/unconfined/dual porosity