First-principles study of native defects in bulk Sm2CuO4 and its (001) surface structure