Yarkovsky Effect on Small Near-Earth Asteroids: Mathematical Formulation and Examples