Towards edge computing using early-exit convolutional neural networks