Simple analytical model of vortex-lattice melting in two-dimensional superconductors