Self-dual U(1) lattice field theory with a θ-term