On the AKSZ Formulation of the Poisson Sigma Model