Automatic selection of molecular images from electron micrographs