First- and second-neighbor square-lattice Potts model: Renormalization-group treatment