On relativistic particle acceleration in molecular clouds