Optical characterization of electrically charged particles using discrete dipole approximation