A unified matrix approach to the representation of Appell polynomials