Spin evolution of Earth-sized exoplanets, including atmospheric tides and core-mantle friction