An Efficient and Chemistry Independent Analysis to Quantify Resistive and Capacitive Loss Contributions to Battery Degradation