Effects of pseudoscalar condensation on the cooling of neutron stars