Quantitative analysis of the correlation between electrical and mechanical activity in smooth muscle