Classical billiards in magnetic fields