Self-Consumption Improvement for a Nanogrid with Photovoltaic and Vehicle-to-Home Technologies