Global representation and multiscale expansion for the Dirichlet problem in a domain with a small hole close to the boundary