Analysis and Design of an Off-Grid Residential Power System