Mapfre to buy Safety Insurance for $1.54 billion in all-cash deal