Introduction to loop quantum gravity and spin foams