Topological excitations and Monte Carlo simulation of Abelian gauge theory