First principles simulations of extended defects at cubic SiC surfaces and interfaces