Email Record: Automatic crack classification and segmentation on masonry surfaces using convolutional neural networks and transfer learning