Casimir energy in noncompact lattice electrodynamics