The bubble dynamics of bitcoin