Global NLO Analysis of Nuclear Parton Distribution Functions