Piezoresistive Cantilever Optimization and Applications