Nani credits Moyes for stay at Man Utd