Random permutation matrices under the generalized Ewens measure