Exact solutions for electromagnetic wave diffraction by a slot and strip