Text this: Automatic position and shape optimization of flexible TMS coils to improve coil placement during electric field simulations