Coherent γγ and γA interactions in very peripheral collisions at relativistic ion colliders