L p boundedness for the Bergman projections over n-dimensional generalized Hartogs triangles