The quasi deuteron mechanism in the electromagnetic interactions with nuclei: a way to study tensor effects