On the linearity and classification of Z_p^s-linear generalized Hadamard codes