Triad analysis of global energy trade networks and implications for energy trade stability