Optimization of charge curve for the extreme inhibition of growing microstructures during electrodeposition