Text this: Design of dual-layer heater based on genetic algorithm to optimize magnetic field gradient in vapor cell