Scale-free networks of earthquakes and aftershocks