Time-dependent approach to electron transport through junctions: General theory and simple applications | Synapse