Cell mechanics and energetic costs of collective cell migration under confined microchannels