Electromagnetic radiation by gravitating bodies