Let's take a black object for example. When waves of light (whether from the sun or a lamp) come into contact with the object, is it just the electrons (not the molecules) of the object that directly take in/contain the energy from the light source when the light waves comes in contact? Or, do the molecules also directly take in energy from the photons when the waves come into contact with the molecules?
Or, is it that the molecules just get their energy from the electrons that transfer the energy to them?
And when the object releases energy as heat, is it energy from the electrons, molecules, or both molecules and electrons that's being released?