A new class of differential equations with impulses at instants dependent on preceding pulses. Applications to management of renewable resources