Modeling of a smart nano force sensor using finite elements and neural networks