Detection of the gravitational memory effect in LISA using triggers from ground-based detectors