Room-temperature ferromagnetism in Cr-doped Si achieved by controlling atomic structure, Cr concentration, and carrier densities: A first-principles study