ASTROMER: A transformer-based embedding for the representation of light curves