A Semantic Foundation for Trust Management Languages with Weights: An Application to the RT Family