A mode-independent energy-based buckling analysis method and its application on substrate-supported graphene