Carbon dissolution and diffusion in ferrite and austenite from first principles