PIXER: an automated particle-selection method based on segmentation using a deep neural network