A boundary condition-based approach to the modeling of memristive nano-structures