Valeant swings to profit on Bausch & Lomb buy