A hysteresis-based chaotic circuit: dynamics and applications