Electrostatic layer-by-layer deposition and electrochemical characterization of thin films composed of MnO2 nanoparticles in a room-temperature ionic liquid.