Measurement of stresses and their effect on transport in thin film battery electrodes