The electromagnetic optical theorem revisited