Hubble diagram as a probe of minicharged particles