Layer-by-Layer Approach for Design of Chemical Sensors and Biosensors