In which layer of the sun’s interior is energy transferred mainly by electromagnetic radiation?