Energy loss of charged particles to molecular gas targets