Virtual code resource allocation for energy-aware MTC access over 5G systems