A novel cost function for despeckling using convolutional neural networks