Local communities and tourism development. The TRIM project