Anisotropy of the magnetoelectric effect in β′-Gd2(MoO4)3