Controlling Cherenkov angles with resonance transition radiation