Covers of algebraic varieties III. The discriminant of a cover of degree 4 and the trigonal construction