Alpha agrees to buy Massey Energy for about $7.1 billion