3M to sell gas and flame detection business to Teledyne