Economic analysis of residential solar microgrids