Laser-induced electron--ion recombination used to study enhanced spontaneous recombination during electron cooling