Gravar-mail: Class of gauge-invariant models of quantum electrodynamics with nonlocal interaction