Generalized LU factorization for a general HSS matrix