Energetics of substitutional carbon in hydrogenated Si(100)