The fundamental principle for mean-periodic distributions