Temperature evolution of the cluster state in La0.8Ca0.2MnO3 and La0.8Ca0.2CoO3