Inverse Modeling of Aerosol Dynamics Using Adjoints: Theoretical and Numerical Considerations