Nanomaterial-Based Electrochemical Sensors for Environmental and Energy Applications