running NM through a wall. need power through a hole in the foundation then outside using THHN/THWN. do I put the junction box inside to join NM & THHN then through the foundation, or can I put the box outside and run NM through the hold in the foundation?