Multidimensional Permanents and an Upper Bound on the Number of Transversals in Latin Squares