Automated malaria diagnosis using convolutional neural networks in an on-field setting