An act or omission which is made punishable in different ways by different provisions of this Code may be punished under any of such provisions, but in no case may it be punished under more than one. An acquittal or conviction and sentence under any one bars a prosecution for the same act or omission under any other.