How is China’s energy security affected by exogenous shocks? Evidence of China–US trade dispute and COVID-19 pandemic