How does a superconducting transistor work?