Smooth Integration of Rectifier-Battery Banks Operation in Real-Life Isolated Microgrids Based on Renewable Sources: Theory and Application