A fast method for computing strong-lensing cross sections: application to merging clusters