Solitary waves in abelian gauge theories