SMS: The GRAPE aerosol retrieval algorithm