Distances of the Virgo and Coma clusters of galaxies through novae and supernovae