semiclassical estimates, trace formulas, magnetic response