Field-history-dependent peak effect in the superconducting mixed state of CeRu2