Probing of the shallow donor and acceptor wave functions in silicon carbide and silicon through an EPR study of crystals with a modified isotopic composition