Application of Mathematical Modeling to Optimal Design of Biosensors