Quark matter contribution to the heat capacity of magnetized neutron stars