Considering that a black hole's gravity prevents light from escaping, how can a black hole emit X-rays? Visible light and X-rays are both electromagnetic radiation, shouldn't the black hole's gravity prevent X-rays from escaping?