First-principle study of C 1s core-level shifts in amorphous carbon