Orthogonality preservers in C∗-algebras, JB∗-algebras and JB∗-triples