Electromagnetic counterparts to black hole mergers