Wiener criterion at the boundary related to p-homogeneous strongly local Dirichlet forms