Text this: Optimal Placement and sizing of D-STATCOM in radial and meshed distribution networks using a discrete-continuous version of the genetic algorithm