Vortex lattice melting in multilayers with variable anisotropies