Superconducting devices: fundamentals and applications