Theory of Fano profiles