pv system loss calculation