Text this: Trainable segmentation for transmission electron microscope images of inorganic nanoparticles