Surface Plasmon Resonance (SPR) Sensor Based on Optimal Pre- and Post-Selection