Regulation of electric bicycles