Generalized Abelian Higgs model with analytical vortex solutions