On-Sensor Convolutional Neural Networks with Early-Exits