Study of charge transport in silicon detectors: Non-irradiated and irradiated