Livelihood gains and ecological costs of NTFP dependence: assessing the roles of dependence, ecological knowledge and market structure in three contrasting human and ecological settings in south India