A general formulation to describe empirical rainfall thresholds for landslides