Theoretical studies of defects in silicon carbide