A Statistical Physics Approach to Understanding the Adsorption of Methylene Blue onto Cobalt Oxide Nanoparticles