Monitoring and quantifying morphological and structural changes in electrode materials under operando conditions