3d Abelian gauge theories at the boundary