On the discriminatory power of the Zagreb indices for molecular graphs