Late stages of stellar evolution. II - Mass loss and the transition of asymptotic giant branch stars into hot remnants | Synapse