Performance of a two-state quantum engine improved by the superposition effect