Vortex nucleation processes in rotating lattices of Bose-Einstein condensates ruled by the on-site phases