Design and Simulation of Out-of-Plane Nanomaterial-Based Thermocouples