Nonlinear dynamics and hyperchaos in a modified memristor-based Chua's circuit and its generalized discrete system