A Genetic Algorithm for Universal Optimization of Ultrasensitive Surface Plasmon Resonance Sensors with 2D Materials