On the stabilization of three-dimensional boundary layers by suction and cooling