Text this: The Incident Field Optimization Method for the Electromagnetic Inverse Problems