Relative virtual localization and vanishing of tautological classes on moduli spaces of curves